package utils.text;

import java.awt.*;
import javax.swing.*;
import javax.swing.text.*;

/**
 *
 * @author Juan Carlos García
 */
public class TextUtils {
    
    private static String code = "";
    
    public static String formatCode(String codeLine,JTextPane pane){
        
        SimpleAttributeSet set = new SimpleAttributeSet();
        StyleConstants.setBold(set, true);

        // Set the attributes before adding text
        pane.setCharacterAttributes(set, true);
     
    
        code=codeLine;
        
        
        return code;
        
    }
    
}
